﻿
@{
    Layout = "";
    ViewBag.Title = "PersonInfo";
}
<link href="~/Content/bootstrap-3.3.7/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/layui-market/plugins/layui/css/layui.css" rel="stylesheet" />

<div class="container">
    <div class="row">
        <div class="col-md-4" style="text-align:center">
            <div class="site-demo-upload" style="margin:10px;">
                <img id="LAY_demo_upload" src="~/Content/layui-market/images/0.jpg" class="img-circle" style="width:120px;height:120px">
                <div class="site-demo-upbar">
                    <br />
                    <input type="file" name="file" class="layui-upload-file" id="test">
                </div>

            </div>
        </div>
        <div class="col-md-8">
            <div style="margin:10px;">
                <ul class="list-group">
                    <li class="list-group-item">登&nbsp;录&nbsp;名：admin</li>
                    <li class="list-group-item"> 姓&nbsp;&nbsp;&nbsp;&nbsp;名：张三</li>
                    <li class="list-group-item">联系电话：028-88888888</li>
                    <li class="list-group-item">证件号码：5111111111111111111111</li>
                    <li class="list-group-item">出生日期：1999-01-01</li>
                </ul>
            </div>
        </div>

    </div>
</div>


<script src="~/Content/layui-market/plugins/layui/layui.js"></script>
<script>
    layui.use('upload', function () {
        layui.upload({
            url: '/test/upload.json',
            elem: '#test',
            type: 'images',
            method: 'get',
            success: function (res) {
                LAY_demo_upload.src = res.url;
            }
        });
    });
</script>